package com.starlink.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.starlink.common.domain.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("deposit_record")
public class DepositRecordDO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 用户id */
    @TableField("user_id")
    private Long userId;
    /** 关联的业务id */
    @TableField("link_id")
    private Long linkId;
    /** 关联的业务类型 */
    @TableField("link_type")
    private String linkType;
    /** 操作类型 1增加 2扣减 */
    @TableField("operation_type")
    private Integer operationType;
    /** 微信支付订单id */
    @TableField("pay_id")
    private String payId;
    /** 标题 1缴纳押金 2逾期归还 3书本破损 4提现 */
    @TableField("title")
    private Integer title;
    /** 变更押金金额 */
    @TableField("change_cash_pledge")
    private BigDecimal changeCashPledge;
    /** 剩余押金金额 */
    @TableField("balance_cash_pledge")
    private BigDecimal balanceCashPledge;
    /** 备注 */
    @TableField("mark")
    private String mark;
    /** 押金订单id */
    @TableField("order_num")
    private String orderNum;
}
